/**
 * 
 */
package com.google.code.cisx.service;

import com.google.code.cisx.client.dto.CommonViewHelper;
import com.google.code.cisx.client.dto.ProjectGroupViewHelper;
import com.google.code.cisx.client.dto.QueryViewHelper;
import com.google.code.cisx.client.service.RemoteProjectGroupService;
import com.google.code.cisx.client.service.RemoteServiceException;
import com.google.gwt.user.server.rpc.RemoteServiceServlet;

import java.util.List;

import javax.servlet.ServletException;

/**
 * @author <a href='mailto:rahul.thakur.xdev@gmail.com'>Rahul Thakur</a>
 * @since 1.0
 * @version $Id: RemoteProjectServiceImpl.java 94 2008-01-05 02:49:05Z
 *          rahul.thakur.xdev $
 */
public class RemoteProjectGroupServiceImpl extends RemoteServiceServlet implements
    RemoteProjectGroupService {

  /**
   * Serialization Id.
   */
  private static final long serialVersionUID = 4232070826046369084L;

  /*
   * (non-Javadoc)
   * 
   * @see javax.servlet.GenericServlet#init()
   */
  public void init() throws ServletException {
    super.init();
    getServletContext().log("Starting " + getClass().getName());
  }

  /*
   * (non-Javadoc)
   * 
   * @see com.google.code.cisx.client.service.RemoteProjectGroupService#delete(com.google.code.cisx.client.dto.ProjectGroupViewHelper)
   */
  public void delete(ProjectGroupViewHelper entity) throws RemoteServiceException {
    // TODO Auto-generated method stub

  }

  /*
   * (non-Javadoc)
   * 
   * @see com.google.code.cisx.client.service.RemoteProjectGroupService#lookup(java.lang.Long)
   */
  public ProjectGroupViewHelper lookup(Long id) throws RemoteServiceException {
    // TODO Auto-generated method stub
    ProjectGroupViewHelper group = new ProjectGroupViewHelper();
    group.setName("Default Group");
    group.setGroupId("");
    group.setDescription("Default Project Group");

    return group;
  }

  /*
   * (non-Javadoc)
   * 
   * @see com.google.code.cisx.client.service.RemoteProjectGroupService#query(com.google.code.cisx.client.dto.QueryViewHelper,
   *      int, int)
   */
  public List<? extends CommonViewHelper> query(QueryViewHelper<ProjectGroupViewHelper> query,
      int startIdx, int range) throws RemoteServiceException {
    // TODO Auto-generated method stub
    return null;
  }

  /*
   * (non-Javadoc)
   * 
   * @see com.google.code.cisx.client.service.RemoteProjectGroupService#save(com.google.code.cisx.client.dto.ProjectGroupViewHelper)
   */
  public ProjectGroupViewHelper save(ProjectGroupViewHelper entity) throws RemoteServiceException {
    // TODO Auto-generated method stub
    return null;
  }

}
